﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_ThemLoaiSanPham : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void To_DanhSach(object sender, EventArgs e)
    {
        Response.Redirect("QuanLyLoaiSanPham.aspx");
    }

    protected void lvCountries_ItemInserting(object sender, ListViewInsertEventArgs e)
    {


        DropDownList ddl = e.Item.FindControl("ddlLoaiTLCha") as DropDownList;
        if (ddl != null)
        {
            e.Values["IDLoaiTLCha"] = (Convert.ToInt32(ddl.SelectedValue));
        }

        DropDownList ddl2 = e.Item.FindControl("ddlLoaiCopy") as DropDownList;
        if (ddl2 != null)
        {
            e.Values["LoaiCopy"] = (Convert.ToInt32(ddl2.SelectedValue));
        }

    }
}